<?php defined('_JEXEC') or die('Restricted access'); 
$baseurl = JURI::base();
$product_image_url = $baseurl.'/images/products'; 
?>

<table class="contentpaneopen<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
	<tr>
		<td>
		<?php
		foreach( $this->results as $result ) : ?>
			<fieldset>
				<div>
					<?php if ( $result->href ) :
						if ($result->browsernav == 1 ) : ?>
							<a href="<?php echo JRoute::_($result->href); ?>" target="_blank">
						<?php else : ?>
							<a href="<?php echo JRoute::_($result->href); ?>">
						<?php endif; ?>
						<?php if(isset($result->image)): ?>
							<img style="float: left" src="<?php echo $product_image_url.'/small/'.$result->image ?>" alt="<?php echo $result->title ?>" />
						<?php else: ?>
						<?php echo '<strong>'.$this->escape($result->title).'</strong>'; ?>
						<?php endif;?>
						<?php if ( $result->href ) : ?>
							</a>
						<?php endif;
						if ( $result->section ) : ?>
						<?php endif; ?>
					<?php endif; ?>
				</div>
				<div>
					<p><?php echo $result->text; ?></p>
				</div>
				<?php
					if ( $this->params->get( 'show_date' )) : ?>
				<div class="small<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
					<?php echo $result->created; ?>
				</div>
				<?php endif; ?>
			</fieldset>
		<?php endforeach; ?>
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<div align="center">
				<?php echo $this->pagination->getPagesLinks( ); ?>
			</div>
		</td>
	</tr>
</table>